﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Shundao.Users
{
    public class Users:Entity<Guid>, IHasCreationTime, IHasModificationTime
    {
        public Guid? RoleId { get; set; }
        [MinLength(5), MaxLength(20)]
        public string UserName { get; set; }
        public string Password { get; set; }
        [MinLength(11), MaxLength(11)]
        public string PhoneNum { get; set; }
        [MaxLength(50)]
        public string NickName { get; set; }
        [MaxLength(150)]
        public string ImageKey { get; set; }
        [MaxLength(50)]
        public string OpenId { get; set; }
        public DateTime CreationTime { get; set; }
        public DateTime? LastModificationTime { get; set; }
    }
}
